<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%request.setCharacterEncoding("utf-8"); %>
<%@ page import="com.exam.domain.*"%>
<%@ page import="javax.servlet.*"%>

<%Instructor ins=(Instructor)session.getAttribute("result");%>
<%String takes=(String)session.getAttribute("course");%>

<script type="text/javascript">
function confirmDel()
{
	if(confirm("确定删除?"))
	{
		with(document.getElementById("form2"))
		{		
			action="servlet/DelInsServlet";
			submit();
		}
	}
}
</script>

<title>E-Exam</title>
</head>

<body>
<p><img src="e-exam.gif" width="680" height="170" /></p>
<h2 id="pageName">教师信息</h2>
<table width="404" border="4" cellspacing="5" height="180">
  <tr>
    <th  scope="row" >姓名</th>
    <td ><%if(ins!=null) out.print(ins.getI_name()); %></td>
  </tr >
  <tr>
    <th  scope="row" width="140">ID</th>
    <td ><%if(ins!=null)out.print(ins.getI_id()); %></td>
  </tr> 
  <tr>
    <th scope="row">性别</th>
    <td><%if(ins!=null)out.print(ins.getI_sex().equals("male")?"男":"女"); %></td> 
  </tr>
   </tr> 
  <tr>
    <th scope="row">生日</th>
    <td><%if(ins!=null)out.print(ins.getI_birth()); %></td> 
  </tr>
  <tr>
    <th scope="row">教授课程编号</th>
    <td><%if(takes!=null)out.print(takes);%></td>
  </tr>
</table>
  <p>&nbsp;</p>
<%request.getSession().setAttribute("insFromWhere","1"); %>
<table>
<form id="form1" name="form1" method="post" action="servlet/UpdateInsServlet">

  <td scope="row" width="80"> <input name="Submit" type="submit" value="修改" /></td>
  <input type="hidden" name="UpdateID" value=<%=ins.getI_id()%>>
</form>
<form id="form2" name="form2" method="post" >
  <td><input name="Submit" type="submit" value="删除" onclick="confirmDel();"></td>
  <input type="hidden" name="delID" value=<%=ins.getI_id()%>>
</form>
</table>
<p>&nbsp;</p>
<p><a href="admin_t.jsp">返回教师管理中心</a></p>
</body>
</html>
